package com.bestcem.xm.wallet.grpc.client.dto;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 发票详情
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/18 19:16
 */
@Data
public class InvoiceDetailDTO {

    /**
     * 发票类型
     */
    @NotNull(message = "发票类型不能为空")
    private Integer type;
    /**
     * 发票金额
     */
    @Min(value = 99, message = "开票金额过小")
    private BigDecimal amount;
    /**
     * 纳税人识别号(individual taxpayer identification number)
     */
    private String itin;
    /**
     * 发票抬头
     */
    private String title;

}
